package com.csht.controller;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 退出登录
 * @author chenhuiyan
 *
 */
@Controller
public class LogoutController {
	
	@RequestMapping(value = "/Logout")
	public String Logout(HttpServletRequest request) throws Exception{
		request.getSession().invalidate();
		return "redirect:/index";
	}

}
